package vno.sci.event
{
	import flash.events.Event;
	/**
	 * Event for Monolog
	 * public var id is the id of the window.
	 * public static var 
	 * <p><code>NEXT</code></p>
	 * <p><code>PREVIOUS</code></p>
	 * <p><code>CLICK</code></p>
	 
	 * @see vno.sci.window.Monolog 
	 * @author scinart
	 */ 
	 /* @private
	 * <p><code>CLOSING</code></p>
	 */
	public class MonologEvent extends Event
	{
		public var id:uint;
		/**
		 *  The <code>MonologEvent.NEXT</code> constant defines the value of the
		 *  <code>type</code> property of the event object for a <code>NEXT_BUTTON</code> event.
		 *
		 *  @eventType NEXT_BUTTON
		 */
		public static var NEXT:String = "NEXT_BUTTON";
		/**
		 *  The <code>MonologEvent.PREVIOUS</code> constant defines the value of the
		 *  <code>type</code> property of the event object for a <code>PREVIOUS_BUTTON</code> event.
		 *
		 *  @eventType PREVIOUS_BUTTON
		 */
		public static var PREVIOUS:String = "PREVIOUS_BUTTON";
		/**
		 *  The <code>MonologEvent.CLICK</code> constant defines the value of the
		 *  <code>type</code> property of the event object for a <code>MONOLOG_CLICKED</code> event.
		 *
		 *  @eventType MONOLOG_CLICKED
		 */
		public static var CLICK:String = "MONOLOG_CLICKED";
		/**
		 *  The <code>MonologEvent.CLOSING</code> constant defines the value of the
		 *  <code>type</code> property of the event object for a <code>MONOLOG_CLOSING</code> event.
		 *
		 *  @eventType MONOLOG_CLOSING
		 */
		public static var CLOSING:String = "MONOLOG_CLOSING";
				
		public function MonologEvent(id:uint, type:String, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			this.id = id;
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event
		{
			return new MonologEvent(id,super.type,super.bubbles,super.cancelable);
		}
		
		override public function toString():String
		{
			return formatToString("MonologEvent", super.type, super.bubbles, super.cancelable, super.eventPhase);
		}
	}
}